import React from 'react';
import styles from './index.module.less';
import classnames from 'classnames';

export interface StatusTagProps {
  text: string; // tag 文本内容
  type: 'success' | 'cancel'; // tag 类型
}

const StatusTag: React.FC<StatusTagProps> = (props) => {
  return (
    <span className={classnames(styles['title-status'], styles[props.type])}>{props.text}</span>
  );
};

export default StatusTag;